<?
namespace app\admin\admin; 

use xto\data\service\LogService;

class Logs extends BaseController{
	public function index(){
		$source=LogService::getlist(20);
		return $this->template
				->TableTemplate 
				->setData('modulename','基础管理')
				->setTitle('日志管理')
				->setPager($source['page'])
				->setDataSource($source['list'])
				->addColumnButton('delete') 
				->addNav('','日志管理',url('logs/index')) 
				->setPid('logid')
				->setColumns([
					['logid', '编号'],
	                ['username', '用户名'],
	                ['ip', 'IP'], 
	                ['url', '页面'], 
	                ['createdate', '创建日期'], 
	                ['button', '操作', 'btn']
				])
				->fetch();
	}
}